<!DOCTYPE html>
<html>
    <head>
        <!-- <script src="./js/showPic.js"></script> -->
        <script src="./js/prareGallery.js"></script>
        <script src="./addLoadEvent.js"></script>
        <script src="./js//showPic.js"></script>
        <script src="./js/request.js"></script>
        <link rel="stylesheet" href="css/layout.css">
        <script src="./js/wirte.js"></script>
    </head>
    <body>
        <div>
            <ul id="gallery">
                <li>
                    <a href="./image/a.jpeg">链接a</a>
                </li>
                <li>
                    <a href="./image/b.jpeg">链接b</a>
                </li>
                <li>
                     <a href="./image/c.jpeg">链接C</a>
                </li>
             <li>
                    <a href="./image/d.jpeg">链接d</a>
                </li>
            </ul>
        </div>
    </body>
    <script>
        /**
         * 当showPic报错时，onclick 执行不到return false
        //  * 文本节点才会有nodeValue属性
         */
        // addLoadEvent(prepareGallery);
        // addLoadEvent(showPic)
        addLoadEvent(request);
    </script>
</html>